package com.xinsilu.hospital.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xinsilu.hospital.entity.Listofnoninpatientdrugs;
import com.xinsilu.hospital.entity.NoHospitalizationTable;
import com.xinsilu.hospital.mapper.ListofnoninpatientdrugsMapper;
import com.xinsilu.hospital.service.IListofnoninpatientdrugsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ListofnoninpatientdrugsServiceImpl  extends ServiceImpl<ListofnoninpatientdrugsMapper, Listofnoninpatientdrugs> implements IListofnoninpatientdrugsService {

    @Autowired
    private ListofnoninpatientdrugsMapper listofnoninpatientdrugsMapper;


    @Override
    public List<NoHospitalizationTable> getgoumai(Listofnoninpatientdrugs listofnoninpatientdrugs) {
        return listofnoninpatientdrugsMapper.getgoumai(listofnoninpatientdrugs);
    }

    @Override
    public List<Listofnoninpatientdrugs> weizhifu(Listofnoninpatientdrugs listofnoninpatientdrugs) {
        return listofnoninpatientdrugsMapper.weizhifu(listofnoninpatientdrugs);
    }

    @Override
    public Integer shouqian(String yishou, int patientid) {
        return listofnoninpatientdrugsMapper.shouqian(yishou,patientid);
    }
}
